package cn.kgc.crowdfundingadminspringboot2.service;

import cn.kgc.crowdfundingadminspringboot2.pojo.Admin;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * @author 邓云辉
 * @create 2020-02-19 9:18
 */

public interface AdminService {
    //根据Id查用户
    public Admin selectById(Integer id);

    //登录
    public Admin login(String loginAcct, String userPswd);

    //分页
    PageInfo<Admin> queryForKeywordSearch(Integer pageNum, Integer pageSize, String keyword);
        //删除
    public void batchRemove(List<Integer> adminIdList);
    //添加
    public void saveAdmin(Admin admin);
    //获取id
    public Admin getAdminById(Integer adminId);
    //修改
    public void updateAdmin(Admin admin);

}
